package com.wanmait.happyheating.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wanmait.happyheating.mapper.AdminLoginRecordMapper;
import com.wanmait.happyheating.pojo.AdminLoginRecord;
import com.wanmait.happyheating.service.AdminLoginRecordService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional(rollbackFor = Exception.class)
public class AdminLogRecordServiceImpl extends ServiceImpl<AdminLoginRecordMapper, AdminLoginRecord> implements AdminLoginRecordService {
    @Resource
    private AdminLoginRecordMapper adminLoginRecordMapper;
    @Override
    public List<AdminLoginRecord> findById(Integer id) {
        List<AdminLoginRecord> records=adminLoginRecordMapper.findById(id);
        return records;
    }
}
